package com.LachesismStorm.lachesism.member.service;

import com.LachesismStorm.lachesism.member.dto.UmsMemberParam;
import com.LachesismStorm.lachesism.member.vo.UmsMember;
import com.LachesismStorm.lachesism.member.vo.dto.WeChatParam;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.stereotype.Service;

/**
 * 会员管理Service
 */
@Service
public interface UmsMemberService {

    /**
     * 获取用户信息
     */
    UserDetails loadUserByUsername(String username);
    /**
     * 注册
     *
     * @return
            */
    String register(UmsMember member);

    UmsMember getUserInfo();

    void updateMemberInfo(UmsMember member);


    String loginByOpenId(String openId);


    WeChatParam getWeChatInfoByCode(WeChatParam param);

    String loginWithPhoneInfo(WeChatParam param);

}





